SUBDIRS = src test
CLEAN_SUBDIRS  = src test

all::
	@for subdir in $(SUBDIRS); \
	do \
		echo "making all in $$subdir"; \
		( cd $$subdir && $(MAKE) all ) || exit 1; \
	done
clean::
	@for subdir in $(CLEAN_SUBDIRS); \
	do \
		echo "making clean in $$subdir"; \
		( cd $$subdir && $(MAKE) clean ) || exit 1; \
	done
